package com.kehongborui.fliggy.service;

import com.kehongborui.fliggy.entity.OrderMaster;
import com.kehongborui.fliggy.model.OrderMasterModel;
import com.kehongborui.fliggy.model.OrderModel;

import java.util.List;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-08-22
 */
public interface OrderService {
    // 创建订单
    OrderModel create(OrderModel orderModel);
    // 修改订单
    // 退票 cancel
    boolean cancel(String buyerUid, String orderId);
    // 删除

    // 查寻订单:根据订单编号查询，查询所有订单
    OrderModel findById(String orderId);

    List<OrderMasterModel> findAll();

    // 支付订单
    boolean paid(OrderModel orderModel);
}
